﻿/******************************************************   
创建者: ljj
创建时间: 2017-12-14
修改:
修改时间: 
功能: 联销报表实体
 ******************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Activity.Model
{
    
    public class VendCustSalesReportModel
    {
        
        public class ShowModel
        {
            public IList<ResultTotalFinalModel> resultTotalList { get; set; }
            public IList<IGrouping<string, ResultDetailModel>> resultDetailList { get; set; }
            public int Count { get; set; }
        }
         
        public class SaveModel
        {
            public IList<ResultTotalModel> resultTotalList { get; set; }
            public IList<ResultTotalProvModel> resultTotalProvList { get; set; }
            public IList<ResultDetailModel> resultDetailList { get; set; }
        }
        
        public class ResultTotalModel
        {
            public string MaterialID { get; set; }
            public string FactoryNo { get; set; }
            public string ColorName { get; set; }
            public string VendCustName { get; set; }
            public string DataText { get; set; }
            public string SaleDate { get; set; }
            public decimal SaleRate { get; set; }
            public int RowNumber { get; set; }
            public decimal SaleAmount { get; set; }
            public decimal Discount { get; set; }
            public int SaleQty { get; set; }
            public decimal CostPrice { get; set; }
            public int StockQty { get; set; }
            public int ShopQty { get; set; }
        }

        public class ResultTotalFinalModel: ResultTotalModel
        {
            public IList<IGrouping<string, ResultTotalProvModel>> resultTotalProvList { get; set; }
        }
        
        public class ResultTotalProvModel
        {
            public string MaterialID { get; set; }
            public string FactoryNo { get; set; }
            public string ColorName { get; set; }
            public string VendCustName { get; set; }
            public string Province { get; set; }
            public string DataText { get; set; }
            public string SaleDate { get; set; }
            public decimal SaleRate { get; set; }
            public decimal SaleAmount { get; set; }
            public decimal Discount { get; set; }
            public int SaleQty { get; set; }
            public decimal CostPrice { get; set; }
            public int Qty { get; set; }
        }
        
        public class ResultDetailModel
        {
            public string Province { get; set; }
            public string FactoryNo { get; set; }
            public string StockName { get; set; }
            public string StockType { get; set; }
            public string ShopType { get; set; }
            public string VendCustName { get; set; }
            public string MaterialID { get; set; }
            public decimal CostPrice { get; set; }
            public string ColorName { get; set; }
            public string SaleDate { get; set; }
            public decimal SaleRate { get; set; }
            public string SizeName { get; set; }
            public decimal SaleAmount { get; set; }
            public decimal Discount { get; set; }
            public int SaleQty { get; set; }
            public int Qty { get; set; }
        }
        
        public class ConditionModel
        {
            public IList<AreaModel> OperationAreaList { get; set; }
            public IList<VendCustModel> VendCustList { get; set; }
            public IList<ShopNatureModel> ShopNatureList { get; set; }
            public IList<MatSeriesModel> MatSeriesList { get; set; }
            public IList<MatModelModel> MatModelList { get; set; }
            public IList<MatSeasonModel> MatSeasonList { get; set; }
            public IList<PeriodYearModel> PeriodYearList { get; set; }
        }
        
        public class AreaModel
        {
            public string AreaName { get; set; }
            public string AreaID { get; set; }
        }
        
        public class VendCustModel
        {
            public string VendCustID { get; set; }
            public string VendCustName { get; set; }
            public int UserID { get; set; }
        }
        
        public class ShopNatureModel
        {
            public int ShopNatureID { get; set; }
            public string ShopNatureName { get; set; }
        }
        
        public class MatSeriesModel
        {
            public string SeriesID { get; set; }
            public string SeriesName { get; set; }
        }
        
        public class MatModelModel
        {
            public string ModelID { get; set; }
            public string ModelName { get; set; }
        }
        
        public class MatSeasonModel
        {
            public string SeasonID { get; set; }
            public string SeasonName { get; set; }
        }
        
        public class PeriodYearModel
        {
            public int PeriodYear { get; set; }
        }
    }
}
